package com.main;

import org.apache.commons.httpclient.HttpClient;
import org.apache.commons.httpclient.HttpMethod;
import org.apache.commons.httpclient.methods.GetMethod;

import java.io.IOException;

/**
 * httpClient执行
 * Created by 瑱彬 on 2016/7/5.
 */
public class HttpClientExecutor {
    public static void execute(String url){
        try {
            HttpClient httpclient = new HttpClient();
            HttpMethod httpMethod = new GetMethod(url);
            httpclient.executeMethod(httpMethod);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
